package vn.edu.ute.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import vn.edu.ute.dao.testAutoCreateDatabase;
import vn.edu.ute.pojo.DoanVien;

@Controller
public class DemoController {
	
	@RequestMapping(value = "/demo", method = RequestMethod.GET)
	public String addOrgGet() {
		testAutoCreateDatabase dao = new testAutoCreateDatabase();
		DoanVien dv = new DoanVien();
		dao.createDatabase(dv);
		System.out.println("Hello server");
		return "demospring";
	}
}
